package org.jeecg.common.contant;


import java.util.Arrays;
import java.util.List;

public class HTClient {
    //    Windows	0	编辑删除
//    Linux	1	编辑删除
//    MacOS	2	编辑删除
//    Android	3	编辑删除
//    IOS	4	编辑删除
//    Other	5	编辑删除
//
    public static String[] Clients = {"WINDOWS", "LINUX", "MACOS", "ANDROID", "IOS", "OTHER"};

    public static Integer GetClientOsIndex(String clientOsString) {
        List<String> list = Arrays.asList(Clients);
        int index = list.indexOf(clientOsString.toUpperCase());
        if (index == -1) {
            index = 5;
        }
        return index;
    }
}
